Delete Method (Attachments Collection) 

The Delete method deletes all the attachments in the Attachments collection.

Syntax

objAttachColl.Delete()

Parameters

objAttachColl

Required. The Attachments collection object.

 

Remarks

Be cautious using the Delete method with a collection, since it deletes all the collection s member objects. To delete only one Attachment object, use the Delete2JXFDVD method specific to that object.

The effect of the Delete method is not permanent until you use the Update2E9FDDD, Send1JTD0I1, or Delete._GJYW method on the parent MessageC062VO object containing the Attachments collection.